package com.tanhua.server.interceptor;

import com.tanhua.model.constants.DimensionType;

import java.util.Comparator;
import java.util.Map;

/**
 * @description: 测试灵魂————提交问卷 比较器
 * @author: zhengzheng、liuhaijie、zhangfude
 * @date: 2021/12/25 20:52
 */
public class MapValueComparator implements Comparator<Map.Entry<String, Integer>> {

    @Override
    public int compare(Map.Entry<String, Integer> m1, Map.Entry<String, Integer> m2) {

        return m1.getValue().compareTo(m2.getValue());
    }
}
